package com.talos.ums.controller.admin.socialuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 社交用户表新增/修改 Request VO")
@Data
public class UmsSocialUserSaveReqVO {

    @Schema(description = "主键(自增策略)", requiredMode = Schema.RequiredMode.REQUIRED, example = "21256")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2199")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "社交平台的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "社交平台的类型不能为空")
    private Integer type;

    @Schema(description = "社交 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "13174")
    @NotEmpty(message = "社交 openid不能为空")
    private String openid;

    @Schema(description = "平台 unionId", example = "1967")
    private String unionId;

    @Schema(description = "社交 token")
    private String token;

    @Schema(description = "原始 Token 数据，一般是 JSON 格式")
    private String rawTokenInfo;

    @Schema(description = "用户昵称", example = "芋艿")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "原始用户数据，一般是 JSON 格式")
    private String rawUserInfo;

    @Schema(description = "最后一次的认证 code")
    private String code;

    @Schema(description = "最后一次的认证 state")
    private String state;

}
